/******************************************************************************
 * Copyright (C) 2009 Peter ZHOU <peterzhoulei@gmail.com>                     *
 *                                                                            *
 * This program is free software; you can redistribute it and/or              *
 * modify it under the terms of the GNU General Public License as             *
 * published by the Free Software Foundation; either version 2 of             *
 * the License, or (at your option) any later version.                        *
 *                                                                            *
 * This program is distributed in the hope that it will be useful,            *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
 * GNU General Public License for more details.                               *
 *                                                                            *
 * You should have received a copy of the GNU General Public License          *
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.      *
 ******************************************************************************/

#import "ddIM_wordList.h"


@implementation ddIM_wordList

-(id)init
{
	self = [super init];
	return self;
}

-(NSString*)py
{
	if ( py == nil )
		py = [[NSString alloc] init];
	return py;
}

-(void)setPy:(NSString*)string
{
	[string retain];
	if ( py != nil )
		[py release];
	py = string;
}

-(NSMutableArray*)word
{
	if ( word == nil )
		word = [[NSMutableArray alloc] init];
	return word;
}

-(void)setWord:(NSMutableArray*)value
{
	[value retain];
	if ( word != nil )
		[word release];
	word = value;
}

-(NSMutableArray*)childList
{
	if ( childList == nil )
		childList = [[NSMutableArray alloc] init];
	return childList;
}

-(void)setChildList:(NSMutableArray*)list
{
	[list retain];
	if ( childList != nil )
		[childList release];
	childList = list;
}

-(id)fatherNode
{
	return fatherNode;
}

-(void)setFatherNode:(id)node
{
	[node retain];
	[fatherNode release];
	fatherNode = node;
}

@end
